import gzip

import demjson3

if __name__ == '__main__':
    tDict = {'a': 1, 'b': {'c': 2, 'd': 3}}
    tList = [1, 2, 3]
    zip_file = gzip.compress(demjson3.encode(tDict).encode("utf8"))
    test_str = gzip.decompress(zip_file).decode("utf8")
    json_obj = demjson3.decode(test_str)
    print(json_obj)
    tList.append(4)
    print(tList)
